package com.alipay.model.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author Jun
 */

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum ResponseCodeEnum {
    // 成功
    SUCCESS(200, "success"),
    // 失败
    BAD_REQUESTS(1001, "非法请求"),
    ARG_ERROR(1002, "参数为空!"),
    BALANCE_ERROR(1003, "账户余额不足"),
    DECREASE_ERROR(1004, "账户余额扣减失败"),
    INCREASE_ERROR(1005, "账户余额增加失败"),
    TRANSFER_ERROR(1006, "账户转账失败");

    private Integer code;
    private String msg;
}
